﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Threading;
using System.Diagnostics;

namespace CamServer
{
    public partial class About : DavuxLib.Controls.AeroForm
    {

        public About()
        {
            try
            {
                this.Font = new Font("Segoe UI", this.Font.Size);
            }
            catch { }
            InitializeComponent();

            glowLabel1.Font = new Font(this.Font.FontFamily, glowLabel1.Font.Size);

            _GlassArea.Bottom = pic.Height + pic.Location.Y + 3;

        }

        private void About_Load(object sender, EventArgs e)
        {
            lblVersion.Text = System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.ToString();
        }

        private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            try
            {
                System.Diagnostics.Process.Start("http://www.daveamenta.com");
            }
            catch (Exception ex)
            {
                Trace.WriteLine("Unable to open link: " + ex);
            }
        }

        private void linkLabel3_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            try
            {
                System.Diagnostics.Process.Start("http://www.daveamenta.com/feedback");
            }
            catch (Exception ex)
            {
                Trace.WriteLine("Unable to open link: " + ex);
            }
        }

        private void linkLabel2_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            try
            {
                System.Diagnostics.Process.Start("http://www.daveamenta.com/donate");
            }
            catch (Exception ex)
            {
                Trace.WriteLine("Unable to open link: " + ex);
            }
        }

        private void btnUpdate_Click(object sender, EventArgs e)
        {

        }


        protected override void OnSizeChanged(EventArgs e)
        {
            base.OnSizeChanged(e);
            Invalidate();
        }

    }
}
